﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microsoft.Practices.Unity;

namespace MvcWiki.Web.Prototype.MVC2P1.Prototyping
{
    public static class Injections
    {
        public static IUnityContainer InjectDefault()
        {
            IUnityContainer container = new UnityContainer();

            ControllerBuilder.Current.SetControllerFactory(
                new MvcWiki.Web.Prototype.MVC2P1.Prototyping.UnityControllerFactory(container));

            return container;
        }
    }
}
